home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / prospero / propsero.lha / prospero-beta.4.2e / server / Makefile < prev    next >
Makefile  |  1992-02-10  |  1KB  |  65 lines

  1. # Where to find things 
  2. P_INC    = ../include
  3. PFS_LIB    = ../lib/pfs/libpfs.a
  4. SRV_LIB    = ../lib/psrv/libpsrv.a
  5.  
  6. INSTDIR = UNDEFINED
  7. INSTALL = install
  8. OWNER   = pfs
  9. GROUP   = pfs
  10.  
  11. # Args to cc
  12. CC    = cc
  13. F_CC    = -c -g
  14. F_CCL    = -g
  15. F_CPP    = -I${P_INC} ${MACHDEF} -DDEBUG
  16.  
  17. CFILES    = \
  18.     dirsrv.c \
  19.     pstart.c
  20.  
  21. OBJECTS    = \
  22.     dirsrv.o \
  23.     pstart.o
  24.  
  25. PROGS    = dirsrv pstart
  26.  
  27. CODE    = ${CFILES} Makefile
  28.  
  29. all:    ${PROGS}
  30.  
  31.  
  32. install:
  33.     -for i in ${PROGS}; do \
  34.         (${INSTALL} -c -s -o ${OWNER} -g ${GROUP} $$i ${INSTDIR}/$$i); \
  35.         done 
  36.     -chmod 6755 ${INSTDIR}/pstart 
  37.  
  38. clean:
  39.     rm -f a.out core *~ *.o ${OBJECTS} ${PROGS}
  40.  
  41. src:    ${CODE}
  42.  
  43. ${CODE}:
  44.     co -q $@
  45.  
  46. ${OBJECTS}:
  47.     ${CC} ${F_CC} ${F_CPP} $*.c
  48.  
  49. ${PROGS}: ${SRV_LIB} ${PFS_LIB} 
  50.     ${CC} ${F_CCL} -o $@ $@.o ${SRV_LIB} ${PFS_LIB} ${LIBS}
  51.  
  52. # Dependencies
  53. dirsrv.o: dirsrv.h
  54. dirsrv.o: ../include/pauthent.h
  55. dirsrv.o: ../include/perrno.h
  56. dirsrv.o: ../include/pfs.h
  57. dirsrv.o: ../include/plog.h
  58. dirsrv.o: ../include/pmachine.h
  59. dirsrv.o: ../include/pprot.h
  60. dirsrv.o: ../include/psite.h
  61. dirsrv:    dirsrv.o
  62. pstart.o: ../include/pmachine.h
  63. pstart.o: ../include/psite.h
  64. pstart: pstart.o
  65.